package com.yuand.service.impl;

import com.yuand.entity.SysLog;
import com.yuand.mapper.SysLogMapper;
import com.yuand.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yuandong
 * @date 2021/9/11 10:55
 */
@Service
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    private SysLogMapper sysLogMapper;

    /**
     * 保存系统日志
     *
     * @param sysLog
     * @return
     */
    @Override
    public int save(SysLog sysLog) {
        return this.sysLogMapper.insert(sysLog);
    }
}
